package com.suixun.controller;

import javax.annotation.Resource;

import org.jsoup.helper.StringUtil;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.authority.controller.BaseManager;
import com.suixun.service.SimInfoService;

@Controller
@RequestMapping(value = "/realNameCheck")
public class RealNameCheckManage extends BaseManager{
	
	@Resource
	private SimInfoService simInfoService;

	@RequestMapping(value = "authNotPass.json")
    @ResponseBody
    public Object authError(String orderno){
        if(StringUtil.isBlank(orderno)){
        	fail("参数错误");
        }
        
        try{
        	simInfoService.notPass(orderno);
        }catch (Exception e){
            return fail(e.getMessage());
        }
        
        return success();
    }
}
